<script type="text/javascript">
<!--
	if (top.window != window) top.location.href = '<?php echo common::url('login.php')?>';
// -->
</script>
<table border="0" width="100%" height="100%">
<tr>
	<td align="center">
		<form action="<?php echo common::url('login.php')?>" target="_top" name="loginForm" method="post">
		<table border="0">
		<tr>
			<td><?php echo lang('Username')?></td>
					<td><input type="text" name="username" value="" /></td>
		</tr>
		<tr>
			<td><?php echo lang('Password')?></td>
			<td><input type="password" name="password" value="" /></td>
		</tr>
		<tr>
			<td><?php echo lang('Language')?></td>
			<td>
				<select name="language">
<?php
foreach($languageList as $l)
{
?>
					<option value="<?php echo $l['code']?>" <?php echo $l['selected']?>><?php echo $l['label']?></option>
<?php
}
?>
				</select>
			</td>
		</tr>
		<tr>
			<td colspan="2" align="right"><input type="submit" value="<?php echo lang('Login &gt;&gt;')?>" /></td>
		</tr>
		</table>
		</form>
	</td>
</tr>
</table>